package mycompany;

import org.apache.wicket.markup.html.WebPage;
import org.apache.wicket.markup.html.link.DownloadLink;
import org.apache.wicket.util.file.File;

import java.io.IOException;

public class DownloadLinkPage extends WebPage {

    public DownloadLinkPage() throws IOException {
        super();

        try {
            java.io.File file = File.createTempFile("test", ".txt");

            this.add(new DownloadLink("downloadLink",file));

        }catch (IOException e){
            e.printStackTrace();
        }
    }
}
